gridpack::math::TypeCheck< T > Struct Template Reference

This is used to make sure the numeric type is supported. More...

#include <numeric_type_check.hpp>

List of all members.

Classes

struct  isSame

Public Types

typedef boost::mpl::not_
< boost::is_same< Found,
NotFound > > 
OK

Static Public Attributes

static const bool check = OK::value
static const bool isComplex = boost::is_same<T, ComplexType>::value

Detailed Description

template<typename T>
struct gridpack::math::TypeCheck< T >

This is used to make sure the numeric type is supported.

GridPACK only supports a limited number of element types for matrices and vectors, specifically double and std::complex<double>. This will cause a compilation failure if the type is not supported.


Member Typedef Documentation

template<typename T >
typedef boost::mpl::not_< boost::is_same<Found, NotFound> > gridpack::math::TypeCheck< T >::OK

Member Data Documentation

template<typename T >
const bool gridpack::math::TypeCheck< T >::check = OK::value [static]
template<typename T >
const bool gridpack::math::TypeCheck< T >::isComplex = boost::is_same<T, ComplexType>::value [static]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1